package com.csxy.lxl.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "EduCourseDescription对象", description = "课程描述")
@TableName("edu_course_description") // 指定对应的数据库表名
public class EduCourseDescription implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "课程ID")
    @TableId(value = "id", type = IdType.INPUT) // 注意：这里使用INPUT类型，因为ID来自课程表
    private String id;

    @Schema(description = "课程简介")
    private String description;

    @Schema(description = "创建时间", example = "2020-01-01 00:00:00")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @Schema(description = "更新时间", example = "2020-01-01 00:00:00")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}